package com.leileimann.tour.mapper;

import com.leileimann.tour.entity.ShopPlace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author leileiMann
 * @date 2022/3/10 12:55
 */
@Mapper
@Repository
public interface ShopPlaceMapper {

    /**获取所有的购物点*/
    List<ShopPlace> getAllShopPlaces();

    /**根据购物点名称获取相应的购物点*/
    ShopPlace getShopPlaceByName(@Param("shopplacename")String shopplacename);

    /**根据城市名获取购物点*/
    List<ShopPlace> getShopByCityName(@Param("cityname")String cityname,@Param("pageNum")int pageNum);

    /**根据城市名称获取购物点数量*/
    int getShopPlacesNumByCityName(@Param("cityname")String cityname);
}
